package tgc.edu.yzy.entity;



import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
public class EimInvoice {
	private Integer id;
	private String number;//发票号码 唯一
	private String code;//发票代码
	private String money;//金额
	private String name;//报销人
	private String mindate;//开票日期
	private String maxdate;//报销日期
	private EimAdmin eimadmin;
	private EimUser eimuser;
	private String eimadminids;
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(unique=true)
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMoney() {
		return money;
	}
	public void setMoney(String money) {
		this.money = money;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getMindate() {
		return mindate;
	}
	public void setMindate(String mindate) {
		this.mindate = mindate;
	}
	public String getMaxdate() {
		return maxdate;
	}
	public void setMaxdate(String maxdate) {
		this.maxdate = maxdate;
	}
	@ManyToOne
	public EimAdmin getEimadmin() {
		return eimadmin;
	}
	public void setEimadmin(EimAdmin eimadmin) {
		this.eimadmin = eimadmin;
	}
	@ManyToOne
	public EimUser getEimuser() {
		return eimuser;
	}
	public void setEimuser(EimUser eimuser) {
		this.eimuser = eimuser;
	}
	@Column(length=20)
	public String getEimadminids() {
		return eimadminids;
	}
	public void setEimadminids(String eimadminids) {
		this.eimadminids = eimadminids;
	}
	
}
